package com.erlinyou.im.model.black;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.IdClass;
import javax.persistence.Table;

import org.springframework.format.annotation.DateTimeFormat;

import com.erlinyou.im.model.base.AbstractDO;

@Entity
@Table(name="user_black")
@IdClass(UserBlackKey.class)
public class UserBlack extends AbstractDO{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Id
	private long userid;
	
	@Id
	private String rid;
	
	@DateTimeFormat(pattern="yyyy-MM-dd")
	private Date updateTime;

	public long getUserid() {
		return userid;
	}

	public void setUserid(long userid) {
		this.userid = userid;
	}

	public String getRid() {
		return rid;
	}

	public void setRid(String rid) {
		this.rid = rid;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	
	
}
